package demo1;

import java.security.Key;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 沈明月
 * Date: 2023-01-03
 * Time: 15:34
 */

public class Test {
    public static void main(String[] args) {
       Computer computer = new Computer();
       Mouse mouse = new Mouse();
        KeyBoard keyBoard = new KeyBoard();
        computer.useDevice(mouse);
        System.out.println("==================");
        computer.useDevice(keyBoard);
    }
}
